<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>ImagePreviewDialog - ujs</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title="ujs"></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 0.0.1</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/AutoCompleteBox.html">AutoCompleteBox</a></li>
            
                <li><a href="../classes/Function.html">Function</a></li>
            
                <li><a href="../classes/Grouper.html">Grouper</a></li>
            
                <li><a href="../classes/ImagePreviewDialog.html">ImagePreviewDialog</a></li>
            
                <li><a href="../classes/String.html">String</a></li>
            
                <li><a href="../classes/StringList.html">StringList</a></li>
            
                <li><a href="../classes/TabControl.html">TabControl</a></li>
            
                <li><a href="../classes/WebNotification
浏览器通知管理类..html">WebNotification
浏览器通知管理类.</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/JavaScript core extension.html">JavaScript core extension</a></li>
            
                <li><a href="../modules/jquery base plugins.html">jquery base plugins</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>ImagePreviewDialog Class</h1>
<div class="box meta">
    

    

    
        <div class="foundat">
            Defined in: <a href="../files/.._js_subjects_dialog_ImagePreviewDialog.js.html#l16"><code>..\js\subjects\dialog\ImagePreviewDialog.js:16</code></a>
        </div>
    

    
        
            Module: <a href="../modules/JavaScript core extension.html">JavaScript core extension</a>
        
    

    
</div>



<div class="box intro">
    <p>图片预览对话框.</p>

</div>



<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                        
                            <li class="index-item method">
                                <a href="#method_constraintRegion">constraintRegion</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_dft">dft</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_highlight">highlight</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_inRegion">inRegion</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isFinite">isFinite</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isFloat">isFloat</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isInteger">isInteger</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_negetive">negetive</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_nextModule">nextModule</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_paddingLeft">paddingLeft</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_prevModule">prevModule</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_random.">random.</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toAmountWords">toAmountWords</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toDiskSize.">toDiskSize.</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toFixed">toFixed</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toHex">toHex</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toInt">toInt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toSignedNumberString">toSignedNumberString</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method_constraintRegion" class="method item">
    <h3 class="name"><code>constraintRegion</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>min</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>max</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l138"><code>..\js\jsExt\Number.js:138</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>约束数值在指定的范围[min, max]。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">min</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最小值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">max</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最大值.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                    <p>.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_dft" class="method item">
    <h3 class="name"><code>dft</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>obj</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>key</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>defValue</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Object</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Object.js.html#l204"><code>..\js\jsExt\Object.js:204</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>设置对象指定属性的默认值(若参数对象的属性值为null或undefined).
此方法是为了增加代码的可读性.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">obj</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>需要操作的对象.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">key</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>对象的属性名称.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">defValue</code>
                        <span class="type">Mixed</span>
                    

                    

                    <div class="param-description">
                        <p>属性默认值.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Object</span>:
                    
                    <p>操作的对象.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_highlight" class="method item">
    <h3 class="name"><code>highlight</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>keys</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_String.js.html#l264"><code>..\js\jsExt\String.js:264</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>网页中高亮显示字符串中的关键词.
关键词以 #em# 开始，以 $em$ 结束。
如将：Json path &quot;#em#code$em$&quot; is operation  Ids Response: Json path &quot;#em#code$em$
转化成：Json path &quot;<b style="color:#fc4444">code</b>&quot; is operation  Ids Response: Json path &quot;<b style="color:#fc4444">code</b></p>
<p>使用场景：在使用 lucene 做搜索时，若需要支持使用 lucene 语法模糊查询，则纯前端难以完成关键词高亮显示功能，需要由server端完成高亮关键词指定，由前端显示。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">keys</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_inRegion" class="method item">
    <h3 class="name"><code>inRegion</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>min</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>max</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isClosed</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l154"><code>..\js\jsExt\Number.js:154</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数值是否在指定的范围内[min, max]。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">min</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最小值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">max</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最大值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isClosed</code>
                        <span class="type">Boolean</span>
                    

                    

                    <div class="param-description">
                        <p>是否是闭区间，默认false.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                    <p>.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isFinite" class="method item">
    <h3 class="name"><code>isFinite</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>UNKNOWN</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l181"><code>..\js\jsExt\Number.js:181</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断指定的数值是否是有限的(参数可能是一个表达式).</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">UNKNOWN</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isFloat" class="method item">
    <h3 class="name"><code>isFloat</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l57"><code>..\js\jsExt\Number.js:57</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return true if number is a float</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isInteger" class="method item">
    <h3 class="name"><code>isInteger</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l65"><code>..\js\jsExt\Number.js:65</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return true if number is an integer</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_negetive" class="method item">
    <h3 class="name"><code>negetive</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l165"><code>..\js\jsExt\Number.js:165</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前数值的相反数.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_nextModule" class="method item">
    <h3 class="name"><code>nextModule</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>module</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l263"><code>..\js\jsExt\Number.js:263</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取下一个模数.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">module</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>模单位大小.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_paddingLeft" class="method item">
    <h3 class="name"><code>paddingLeft</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>paddingStr</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l119"><code>..\js\jsExt\Number.js:119</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>左填充。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">paddingStr</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a> | <a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>填充值，默认为0.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_prevModule" class="method item">
    <h3 class="name"><code>prevModule</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>module</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l284"><code>..\js\jsExt\Number.js:284</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取上一个模数.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">module</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>模单位大小.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_random." class="method item">
    <h3 class="name"><code>random.</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Math.js.html#l5"><code>..\js\jsExt\Math.js:5</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="method_toAmountWords" class="method item">
    <h3 class="name"><code>toAmountWords</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>UNKNOWN</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l195"><code>..\js\jsExt\Number.js:195</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将数字转换成金额大写格式.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">UNKNOWN</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toDiskSize." class="method item">
    <h3 class="name"><code>toDiskSize.</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>unit</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>precision</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isShowUnit</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l3"><code>..\js\jsExt\Number.js:3</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>转换信息的数量单位.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">unit</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: K/M/G/T，默认为 M.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">precision</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: 结果精度，默认为 2.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isShowUnit</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: 是否显示单位(KB/MB/GB/TB),默认显示.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toFixed" class="method item">
    <h3 class="name"><code>toFixed</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>num</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isRemoveEndZero</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l26"><code>..\js\jsExt\Number.js:26</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>重写 toFixed 方法.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">num</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>指定保留几位小数.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isRemoveEndZero</code>
                        <span class="type">Boolean</span>
                    

                    

                    <div class="param-description">
                        <p>是否去掉末尾的0.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toHex" class="method item">
    <h3 class="name"><code>toHex</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l173"><code>..\js\jsExt\Number.js:173</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return the hexidecimal string representation of an integer</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toInt" class="method item">
    <h3 class="name"><code>toInt</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l43"><code>..\js\jsExt\Number.js:43</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>取整.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toSignedNumberString" class="method item">
    <h3 class="name"><code>toSignedNumberString</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>zeroPrefix</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Number.js.html#l103"><code>..\js\jsExt\Number.js:103</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将 10 转换成 &#39;+10&#39;,
将 -10 转换成 &#39;-10&#39;.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">zeroPrefix</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>: 0之前的字符，一般用 +号，默认为空字符串。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
            </div>
        

        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
